<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--<h1>server&#45;&#45;&#45;&#45;002</h1>-->
<input type="button" onclick='jsonp2()' value="发送JSONP请求"/>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>

    function jsonp2() {
        $.ajax({
            // url: 'http://121.201.68.21:8080/jia/zhifu.php?jsonp=?',
            url: 'http://127.0.0.1:8000/my_view/',
            type: 'GET',
            dataType: 'JSON',
            success: function (data) {
                console.log(data);

                $('body').append(data.key+'-'+data.key2+' ')

            }
        })
    }


</script>
</body>
</html>